// /sys/appreport/list
import request from '@/utils/httpRequest'
// import qs from 'qs';
// 获取所有Report
export function getAllReport(query) {
  return request({
    url: '/sys/reporttype/list',
    method: 'get',
    params: query
  })
}

// 添加举报类型
export function addReport(query) {
  return request({
    url: '/sys/reporttype/add',
    method: 'post',
    data: request.adornData(query)
  })
}

// 修改举报类型
export function editReport(query) {
  return request({
    url: '/sys/reporttype/update',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 获取某个举报类型
export function detailVersion(query) {
  return request({
    url: ' /sys/reporttype/info/' + query,
    method: 'get'
  })
}

// /sys/reporttype/delete
export function delReport(query) {
  return request({
    url: '/sys/reporttype/delete',
    method: 'post',
    data: request.adornData(query, false)
  })
}
